package com.wen.open.springframework.beans.factory.support;

import com.wen.open.springframework.beans.BeansException;
import com.wen.open.springframework.core.io.Resource;
import com.wen.open.springframework.core.io.ResourceLoader;

/**
 * 加载和注册BeanDefinition
 * @author Wen
 * @date 2023/4/24 09:29
 */
public interface BeanDefinitionReader {
    BeanDefinitionRegistry getRegistry();

    ResourceLoader getResourceLoader();

    void loadBeanDefinitions(Resource resource) throws BeansException;

    void loadBeanDefinitions(Resource... resources) throws BeansException;

    void loadBeanDefinitions(String location) throws BeansException;

    void loadBeanDefinitions(String... locations) throws BeansException;
}
